<!--
 * @Description:车辆明细
 * @Autor: 刘诗文
 * @Date: 2021-01-12 13:57:26
 * @LastEditors: 马毅
 * @LastEditTime: 2021-03-26 14:21:03
-->
<template>
  <div>
    <FormPanel ref="formPanel" :list="formList" :cols="3" :labelWidth="130" :formType="type" :isSubmitBtn="false" />
  </div>
</template>
<script>
import { dictionary } from '@/utils/dictMixin';
export default {
  name: 'vehicleDetailOEM',
  mixins: [dictionary],
  props: {
    type: {
      type: String
    },
    formData: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    this.selectedData = null;
    return {
      formList: this.createFromList()
    };
  },
  mounted() {},
  methods: {
    createFromList() {
      return [
        {
          type: 'INPUT',
          label: 'VIN',
          fieldName: 'vin',
          disabled: true,
          initialValue: this.formData.vin
        },
        {
          type: 'INPUT',
          label: '车系名称',
          fieldName: 'seriesName',
          disabled: true,
          initialValue: this.formData.seriesName
        },
        {
          type: 'INPUT',
          label: '车型名称',
          fieldName: 'modelName',
          disabled: true,
          initialValue: this.formData.modelName
        },
        {
          type: 'INPUT',
          label: '配置名称',
          fieldName: 'apAckAgeName',
          disabled: true,
          initialValue: this.formData.apAckAgeName
        },
        {
          type: 'INPUT',
          label: '选装名称',
          fieldName: 'optionName',
          disabled: true,
          initialValue: this.formData.optionName
        },
        {
          type: 'INPUT',
          label: '产品代码',
          fieldName: 'productCode',
          disabled: true,
          initialValue: this.formData.productCode
        },
        {
          type: 'INPUT',
          label: '产品名称',
          fieldName: 'productName',
          disabled: true,
          initialValue: this.formData.productName
        },
        {
          type: 'INPUT',
          label: '内饰色',
          fieldName: 'innerColorName',
          disabled: true,
          initialValue: this.formData.innerColorName
        },
        {
          type: 'INPUT',
          label: '外饰色',
          fieldName: 'outColorName',
          disabled: true,
          initialValue: this.formData.outColorName
        },
        {
          type: 'DATE',
          label: '生产日期',
          fieldName: 'productDate',
          valueFormat: 'yyyy-MM-dd',
          disabled: true,
          initialValue: this.formData.productDate
        },
        {
          type: 'INPUT',
          label: '发动机号',
          fieldName: 'engineNo',
          disabled: true,
          initialValue: this.formData.engineNo
        },
        {
          type: 'INPUT',
          label: '电机号1',
          fieldName: 'motorNo1',
          disabled: true,
          initialValue: this.formData.motorNo1
        }
        // {
        //   type: 'INPUT',
        //   label: '合格证号',
        //   fieldName: 'a3',
        //   disabled: true,
        //   initialValue: ''
        // },
        // {
        //   type: 'INPUT',
        //   label: '车辆状态',
        //   fieldName: 'a4',
        //   disabled: true,
        //   initialValue: ''
        // },
        // {
        //   type: 'INPUT',
        //   label: '电池编号',
        //   fieldName: 'a5',
        //   disabled: true,
        //   initialValue: ''
        // }
      ];
    }
  }
};
</script>
<style lang="less" scoped></style>
